/*
 example 7.2
 hexadecimal numbers example
 http://tronixstuff.com/tutorials > Chapter Seven
 */

byte a = 0;

void setup()
{
  Serial.begin(9600);
}

void loop()
{
  for (int c=0; c<=255; c++)
  {
    Serial.print("Binary: ");
    Serial.print(c,BIN);// show the value of byte 'a' in binary
    Serial.print("; Decimal: ");
    Serial.print(c,DEC);// show the value of byte 'a' in base-10
    Serial.print("; Hexadecimal: ");
    Serial.println(c,HEX);// show the value of byte 'a' in hexadecimal
    delay(1000);
  }
}

